package edu.ptu.communityplatform.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.ptu.communityplatform.domain.entity.Car;
import edu.ptu.communityplatform.domain.vos.CarPageVo;

/**
 * @BelongsProject: communityPlatform
 * @BelongsPackage: edu.ptu.communityplatform.service
 * @Author: HYJ
 * @CreateTime: 2025-04-06  22:01
 * @Description: TODO
 * @Version: 1.0
 */
public interface ICarService extends IService<Car> {

    /**
     * 根据用户id查询车辆id
     *
     * @return carId
     */
    Long getCarIdByPersonId(Long personId);

    /**
     * 分页查询车辆信息
     *
     * @param pageNum   页码
     * @param pageSize  每页大小
     * @param plotId    小区id
     * @param carNumber 车牌号
     * @return 车辆信息
     */
    IPage<CarPageVo> getCarPage(
            Integer pageNum,
            Integer pageSize,
            Long plotId,
            String carNumber);
}


